<html xmlns="http://www.w3.org/1999/xhtml" xmlns:c="http://java.sun.com/jstl/core"
      xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:t="http://myfaces.apache.org/tomahawk"
      xmlns:v="http://corejsf.com/validator">

<f:view>
<f:loadBundle var="text" basename="#{wylQzqyForm.bundleName}"/>
    <head>
        <title>#{text['wylQzqyDetail.title']}</title>
        <meta name="heading" content="#{text['wylQzqyDetail.heading']}"/>
        <style type="text/css">
            .jscalendar-DB-div-style {
                position: absolute;
                margin-top: -120px;
                margin-left: -508px;
            }
    </style>
    </head>
<body id="wylQzqyForm">

<h:form id="wylQzqyForm" onsubmit="return validateWylQzqyForm(this)">
<h:panelGrid columns="3">
    <h:outputLabel styleClass="desc" for="id" value="#{text['wylQzqy.id']}"/>
    <h:inputText styleClass="text medium" id="id" value="#{wylQzqyForm.wylQzqy.id}" required="true">
        <v:commonsValidator type="required" arg="#{text['wylQzqy.id']}"/>
    </h:inputText>
    <t:message for="id" styleClass="fieldError"/>
    <h:outputLabel styleClass="desc" for="bgjzsj" value="#{text['wylQzqy.bgjzsj']}"/>
    <t:message for="bgjzsj" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="bgjzsj" value="#{wylQzqyForm.wylQzqy.bgjzsj}" required="false" maxlength="10">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="cczt" value="#{text['wylQzqy.cczt']}"/>
    <t:message for="cczt" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="cczt" value="#{wylQzqyForm.wylQzqy.cczt}" required="true" maxlength="1">
        <v:commonsValidator type="required" arg="#{text['wylQzqy.cczt']}"/>
    </h:inputText>
    <h:outputLabel styleClass="desc" for="cswyzt" value="#{text['wylQzqy.cswyzt']}"/>
    <t:message for="cswyzt" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="cswyzt" value="#{wylQzqyForm.wylQzqy.cswyzt}" required="true" maxlength="1">
        <v:commonsValidator type="required" arg="#{text['wylQzqy.cswyzt']}"/>
    </h:inputText>
    <!-- todo: change this to read the identifier field from the other pojo -->
    <h:selectOneMenu value="#{wylQzqyForm.wylQzqy.jbqk}" id="jbqk" required="false" styleClass="select">
        <f:selectItems value="#{wylQzqyForm.wylQzqy.jbqk}"/>
    </h:selectOneMenu>
    <h:outputLabel styleClass="desc" for="operation" value="#{text['wylQzqy.operation']}"/>
    <t:message for="operation" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="operation" value="#{wylQzqyForm.wylQzqy.operation}" required="false" maxlength="20">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="optdate" value="#{text['wylQzqy.optdate']}"/>
    <t:message for="optdate" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="optdate" value="#{wylQzqyForm.wylQzqy.optdate}" required="false" maxlength="23">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="qylx" value="#{text['wylQzqy.qylx']}"/>
    <t:message for="qylx" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="qylx" value="#{wylQzqyForm.wylQzqy.qylx}" required="true" maxlength="2">
        <v:commonsValidator type="required" arg="#{text['wylQzqy.qylx']}"/>
    </h:inputText>
    <h:outputLabel styleClass="desc" for="username" value="#{text['wylQzqy.username']}"/>
    <t:message for="username" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="username" value="#{wylQzqyForm.wylQzqy.username}" required="false" maxlength="50">
    </h:inputText>
    <!-- todo: change this to read the identifier field from the other pojo -->
    <h:selectOneMenu value="#{wylQzqyForm.wylQzqy.wylQz}" id="wylQz" required="false" styleClass="select">
        <f:selectItems value="#{wylQzqyForm.wylQzqy.wylQz}"/>
    </h:selectOneMenu>
    <h:outputLabel styleClass="desc" for="wyzt" value="#{text['wylQzqy.wyzt']}"/>
    <t:message for="wyzt" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="wyzt" value="#{wylQzqyForm.wylQzqy.wyzt}" required="true" maxlength="1">
        <v:commonsValidator type="required" arg="#{text['wylQzqy.wyzt']}"/>
    </h:inputText>

    <h:panelGroup styleClass="buttonBar bottom">
        <h:commandButton value="#{text['button.save']}" action="#{wylQzqyForm.save}" id="save" styleClass="button"/>

        <c:if test="${not empty wylQzqyForm.wylQzqy.id}">
        <h:commandButton value="#{text['button.delete']}" action="#{wylQzqyForm.delete}"
            id="delete" styleClass="button" onclick="bCancel=true; return confirmDelete('WylQzqy')"/>
        </c:if>

        <h:commandButton value="#{text['button.cancel']}" action="cancel" immediate="true"
            id="cancel" styleClass="button" onclick="bCancel=true"/>
    </h:panelGroup>
    <h:outputText/><h:outputText/>
</h:panelGrid>
</h:form>

<v:validatorScript functionName="validateWylQzqyForm"/>

<script type="text/javascript">
    //Form.focusFirstElement($('wylQzqyForm'));
    highlightFormElements();
</script>

</body>
</f:view>
</html>
